package at.ltasat;

public final class ArgumentClazzData {
	private final String argument;
	private final int nProcessors;
	private final boolean canCreateMore;
	
	public ArgumentClazzData(String argument) {
		this(argument, 1, false);
	}
	
	public ArgumentClazzData(String argument, int nProcessors, boolean canCreateMore){
		if(argument == null){
			throw new NullPointerException();
		}
		if(nProcessors <= 0){
			throw new IllegalArgumentException("Number of processors must be greater or equal to one!");
		}
		this.argument = argument;
		this.nProcessors = nProcessors;
		this.canCreateMore = canCreateMore;
	}
	
	public String getArgument(){
		return argument;
	}
	
	public int nProcessors(){
		return nProcessors;
	}
	
	public boolean canCreateMore(){
		return canCreateMore;
	}
	
	@Override
	public String toString(){
		return argument;
	}
	
}
